package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 优惠团购对象 group_buying
 * 
 * @author ruoyi
 * @date 2025-09-17
 */
public class GroupBuying extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id(主键) */
    private Integer id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 发布者 */
    @Excel(name = "发布者")
    private String publisher;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 预览图 */
    @Excel(name = "预览图")
    private String img;

    /** 内容介绍 */
    @Excel(name = "内容介绍")
    private String content;

    /** 原价 */
    @Excel(name = "原价")
    private Double originalPrice;

    /** 折扣价 */
    @Excel(name = "折扣价")
    private Double presentPrice;

    /** 截至日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截至日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 咨询电话 */
    @Excel(name = "咨询电话")
    private String telephone;

    /** 注意事项 */
    @Excel(name = "注意事项")
    private String note;

    /** 阅读量（点击次数） */
    @Excel(name = "阅读量")
    private Integer num;

    /** 参与人数 */
    @Excel(name = "参与人数")
    private Integer participants;

    /** 是否删除 (0:未删除, 1:已删除) */
    private Integer deleted;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }

    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }

    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setOriginalPrice(Double originalPrice) 
    {
        this.originalPrice = originalPrice;
    }

    public Double getOriginalPrice() 
    {
        return originalPrice;
    }

    public void setPresentPrice(Double presentPrice) 
    {
        this.presentPrice = presentPrice;
    }

    public Double getPresentPrice() 
    {
        return presentPrice;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setTelephone(String telephone) 
    {
        this.telephone = telephone;
    }

    public String getTelephone() 
    {
        return telephone;
    }

    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }

    public void setNum(Integer num) 
    {
        this.num = num;
    }

    public Integer getNum() 
    {
        return num;
    }

    public void setParticipants(Integer participants) 
    {
        this.participants = participants;
    }

    public Integer getParticipants() 
    {
        return participants;
    }

    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("publisher", getPublisher())
            .append("publishTime", getPublishTime())
            .append("img", getImg())
            .append("content", getContent())
            .append("originalPrice", getOriginalPrice())
            .append("presentPrice", getPresentPrice())
            .append("endTime", getEndTime())
            .append("telephone", getTelephone())
            .append("note", getNote())
            .append("num", getNum())
            .append("participants", getParticipants())
            .append("deleted", getDeleted())
            .toString();
    }
}
